/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.web.portlet.description.impl;

import com.genia.toolbox.web.portlet.description.ContainerPortletDescription;

/**
 * implementation of the <code>ContainerPortletDescription</code>.
 */
public class ContainerPortletDescriptionImpl
    extends AbstractPortletDescription
    implements ContainerPortletDescription
{
  /**
   * the direction in which will be displayed the portlets of this container.
   */
  private LayoutDirection layoutDirection;

  /**
   * the maximal number of servlet this container must have.
   */
  private int maxNumberSubPortlets = Integer.MAX_VALUE;

  /**
   * the minimal number of servlet this container must have.
   */
  private int minNumberSubPortlets = 1;

  /**
   * the name of the spring view that must generate the content of this portlet.
   */
  private String viewName;



  /**
   * getter for the layoutDirection property.
   * 
   * @return the layoutDirection
   */
  public LayoutDirection getLayoutDirection()
  {
    return layoutDirection;
  }



  /**
   * setter for the layoutDirection property.
   * 
   * @param layoutDirection
   *          the layoutDirection to set
   */
  public void setLayoutDirection(final LayoutDirection layoutDirection)
  {
    this.layoutDirection = layoutDirection;
  }



  /**
   * getter for the maxNumberSubPortlets property.
   * 
   * @return the maxNumberSubPortlets
   */
  public int getMaxNumberSubPortlets()
  {
    return maxNumberSubPortlets;
  }



  /**
   * setter for the maxNumberSubPortlets property.
   * 
   * @param maxNumberSubPortlets
   *          the maxNumberSubPortlets to set
   */
  public void setMaxNumberSubPortlets(final int maxNumberSubPortlets)
  {
    this.maxNumberSubPortlets = maxNumberSubPortlets;
  }



  /**
   * getter for the minNumberSubPortlets property.
   * 
   * @return the minNumberSubPortlets
   */
  public int getMinNumberSubPortlets()
  {
    return minNumberSubPortlets;
  }



  /**
   * setter for the minNumberSubPortlets property.
   * 
   * @param minNumberSubPortlets
   *          the minNumberSubPortlets to set
   */
  public void setMinNumberSubPortlets(final int minNumberSubPortlets)
  {
    this.minNumberSubPortlets = minNumberSubPortlets;
  }



  /**
   * getter for the viewName property.
   * 
   * @return the viewName
   */
  public String getViewName()
  {
    return viewName;
  }



  /**
   * setter for the viewName property.
   * 
   * @param viewName
   *          the viewName to set
   */
  public void setViewName(final String viewName)
  {
    this.viewName = viewName;
  }

}
